package com.wavehi.stack;

import java.util.Stack;

/**
 * @Author WaveHi
 * @Date 9/10/2021 下午 6:50
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description Demonstrate the use of Java VM Stack.
 */
public class StackDemo {

    public static void main(String[] args) {
        StackDemo stackDemo = new StackDemo();
        stackDemo.method01();
    }

    public void method01() {
        int num1 = 10;
        int num2 = 20;
        int result = num1 + num2;
        method02();
    }

    public void method02() {
        int num3 = 30;
        int num4 = 40;
        int result = num3 + num4;
    }
}
